<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head>
		<title><ui:insert name="title">Origon Enterprise</ui:insert></title>
		<ui:insert name="stylesheets">
			<ui:include src="../includes/stylesheets.xhtml"></ui:include>
		</ui:insert>
		<ui:insert name="javascripts">
			<ui:include src="../includes/javascripts.xhtml"></ui:include>
		</ui:insert>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />		
</h:head>
<h:body> 
	<div id="wrapper">
		<div id="header">				
				<ui:insert name="header">
					<ui:include src="../includes/header.xhtml" />
				</ui:insert>
			</div>

			<div id="middle">

				<div id="left_sidebar">
					<ui:insert name="left_sidebar">
						<ui:include	src="#{loginBean.loggedIn?'/WEB-INF/includes/userMenu.xhtml':'/WEB-INF/includes/loginBox.xhtml'}" />
					</ui:insert>
				</div>

				<div id="content">
					<ui:insert name="content">
						<ui:include	src="#{loginBean.loggedIn?'/WEB-INF/includes/productsPrivate.xhtml':'/WEB-INF/includes/productsPublic.xhtml'}" />
					</ui:insert>
				</div>

				<div id="right_sidebar">
					<ui:insert name="right_sidebar">
                        <ui:include src="../includes/rightPanel.xhtml" />
					</ui:insert>
				</div>
			</div>

			<div id="footer">
				<ui:insert name="footer">
					<ui:include src="../includes/footer.xhtml" />
				</ui:insert>
			</div>
		
	</div>
</h:body> 
</html>
